import http from '../utils/request'

export function regRequest(loginname, password) {
  return http({
    method: 'post',
    url: '/api/user/reg',
    data: {
      loginname,
      password,
    },
  })
}

export function loginRequest(loginname, password) {
  return http({
    method: 'post',
    url: '/api/user/login',
    data: {
      loginname,
      password,
    },
  })
}
